// 重置样式
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kexilo-text-color-primary);
  background-color: var(--kexilo-bg-color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

// 移除列表样式
ul,
ol {
  list-style: none;
}

// 移除链接下划线
a {
  color: inherit;
  text-decoration: none;
  
  &:hover {
    text-decoration: none;
  }
}

// 图片响应式
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

// 表格重置
table {
  border-collapse: collapse;
  border-spacing: 0;
}

// 按钮重置
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  
  &:focus {
    outline: none;
  }
}

// 输入框重置
input,
textarea {
  &:focus {
    outline: none;
  }
  
  &::placeholder {
    color: var(--kexilo-text-color-placeholder);
    opacity: 1;
  }
}

// 选择框重置
select {
  &:focus {
    outline: none;
  }
}

// 标题重置
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
}

// 段落重置
p {
  margin: 0;
}

// 代码样式
code,
pre {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

// 引用样式
blockquote {
  margin: 0;
  padding: 0;
}

// 分割线样式
hr {
  border: none;
  height: 1px;
  background-color: var(--kexilo-border-color-lighter);
  margin: 16px 0;
}

// 禁用用户选择
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

// 隐藏滚动条
.no-scrollbar {
  &::-webkit-scrollbar {
    display: none;
  }
  
  -ms-overflow-style: none;
  scrollbar-width: none;
}
